\hypertarget{heat2_8cpp}{
\subsection{Examples/04HeatDiffusion/heat2.cpp File Reference}
\label{heat2_8cpp}\index{Examples/04HeatDiffusion/heat2.cpp@{Examples/04HeatDiffusion/heat2.cpp}}
}


Solving the Heat difusion equation in 2D.  




\subsubsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Luis M. de la Cruz Salas \mbox{[} Sun Apr 13 19:48:52 BST 2008 \mbox{]}
\end{DoxyAuthor}
This code solves the heat diffusion equation in two dimensions: $ \frac{\partial T}{\partial t} = \nabla^2 T$. \begin{DoxyParagraph}{}
This equation is solved in a unit square $ x, y \in [0,1] $. The boundary conditions are as shown in the next figure:
\end{DoxyParagraph}
 
\begin{DoxyImage}
\includegraphics[width=10cm]{LaplaceSquare}
\caption{Unit square in 2D}
\end{DoxyImage}
 \begin{DoxyParagraph}{Compiling and running}
Modify the variables BASE and BLITZ in the file {\ttfamily tuna-\/cfd-\/rules.in} according to your installation and then type the next commands: \begin{DoxyVerb}
   % make
   % ./heat2  \end{DoxyVerb}
 The results are stored in {\ttfamily Data2} . 
\end{DoxyParagraph}


Definition in file \hyperlink{heat2_8cpp_source}{heat2.cpp}.

